package com.zb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zb.entity.ZjSpareParamFieldVal;
import com.zb.extend.SpareParamFieldValExtend;
import com.zb.vo.GoodsFieldValVo;

import java.util.List;

/**
 * <p>
 * 备件参数字段值关联表 服务类
 * </p>
 *
 * @author WEN
 * @since 2023-08-18
 */
public interface ZjSpareParamFieldValService extends IService<ZjSpareParamFieldVal> {

    /**
     * 保存备件参数字段
     * @param custAccId 商家ID
     * @param spareRelationParamId 备件参数关联表ID
     * @param fieldValVos
     */
    void save(Long custAccId, Long spareRelationParamId, List<GoodsFieldValVo> fieldValVos);

    /**
     * 根据备件参数ID获取备件参数字段
     * @param spareRelationParamId 备件参数ID
     * @return
     */
    List<SpareParamFieldValExtend> getBySpareRelationParamId(Long spareRelationParamId);

    /**
     * 根据备件参数ID删除参数字段
     * @param spareRelationParamIds
     */
    void deleteBatchBySpareRelationParamIds(List<Long> spareRelationParamIds);

    /**
     * 根据商品参数字段ID查询
     * @param goodsParamFieldIds
     * @return
     */
    List<Long> getByGoodsParamFieldIds(List<Long> goodsParamFieldIds);
}
